When you copy an object such as a button or a field, you also copy any script the object has.
Copying buttons and modifying their scripts is the easiest way to learn how to program with HyperTalk. Start by copying buttons from the Button Ideas stack. Open the buttons' scripts to see how they work. Modify the scripts; and cut and paste among scripts.
-- part contents for background part 2
----- text -----
Introduction to HyperTalk (cont.)
-- part contents for background part 44
----- text -----
Copying scripts
-- part contents for card part 14
----- text -----
Option-Shift-drag with the Button tool to copy this button. Double-click the copy and click Script to edit its script. Select the word "all" and type "10" to have the button show just 10 cards instead of the entire stack.